<table border="0" cellpadding="0" cellspacing="0" lign="center" width="90%">
<tr><td class="table1" colspan="4" align="center" ><font size="3"><b>Planning List</b></font></td></tr>
<tr>
	<td align="center" class="table1">Process</td>
	<td align="center" class="table1">Temperature</td>
	<td align="center" class="table1">Soaking</td>
	<td align="center" class="table1">Furnace</td>
</tr>
<tr>
	<td align="center">{$incommingArr.processName1}</td>
	<td align="center">{$incommingArr.temp1}</td>
	<td align="center">{$incommingArr.soaking1}</td>
	<td align="center">{$incommingArr.furnace1}</td>
</tr>
{if $incommingArr.temp2 != 0}
<tr>
	<td align="center">{$incommingArr.processName2}</td>
	<td align="center">{$incommingArr.temp2}</td>
	<td align="center">{$incommingArr.soaking2}</td>
	<td align="center">{$incommingArr.furnace2}</td>
</tr>
{/if}
{if $incommingArr.temp3 != 0}
<tr>
	<td align="center">{$incommingArr.processName3}</td>
	<td align="center">{$incommingArr.temp3}</td>
	<td align="center">{$incommingArr.soaking3}</td>
	<td align="center">{$incommingArr.furnace3}</td>
</tr>
{/if}
{if $incommingArr.noOfProcess != -1}
<tr>
  <td class="table1" colspan="12" align="center" ><font size="3"><b>Log Sheet Entry</b></font></td>
</tr>
<tr align="center" class="table1">
  <td class="table1">&nbsp;&nbsp;</td>
  <td class="table1">LogsheetNo<br>No</td>
  <td class="table1">LogsheetDate</td>
  <td class="table1">StartTime</td>
  <td class="table1">Start<br>Temperature</td>
  <td class="table1">Soaking<br>StartTime</td>
  <td class="table1">End<br>Time</td>
  <td class="table1">End<br>Temperature</td>
  <td class="table1">Quenching<br>Media</td>
  <td class="table1">Quenching<br>Time</td>
  <td class="table1">Temp<br>BforQue</td>
  <td class="table1">Temp<br>AfterQue</td>
</tr>
{section name="sec" loop=$processArr}
<tr>
	<td class="table1">
		<input type="hidden" name="logSheetPlanningId" value="{$incommingArr.logSheetPlanningId}" />
		<input type="hidden" name="logSheetIncomingId" value="{$incommingArr.logSheetIncomingId}" />
		<input type="hidden" name="logSheetprocessId[]" value="{$processArr[sec].processNo}" />
		<input type="hidden" name="status[]" value="{$processArr[sec].status}" />
		<input type="hidden" name="processNo[]" size="8" value="{$smarty.section.sec.rownum}" READONLY />
		{$processArr[sec].processName}
	</td>
	<td class="table1" align="center"><input type="text" name="logsheetNo[]" size="8" value="{$processArr[sec].logsheetNo}" required="required" /></td>
	<td class="table1" nowrap>{html_select_date prefix="curDate" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d" time={$processArr[sec].logsheetDate}}</td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false time=$processArr[sec].startTime}</td>
	<td class="table1" align="center"><input type="text" name="startTemperature[]" value="{$processArr[sec].startTemperature}" size="8" /></td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false time=$processArr[sec].soakingStartTime}</td>
  <td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false time=$processArr[sec].endTime}</td>
	<td class="table1" align="center"><input type="text" name="endTemperature[]" size="8" value="{$processArr[sec].endTemperature}" /></td>
	<td class="table1" align="center"><input type="text" name="quenchingMedia[]" size="8" value="{$processArr[sec].quenchingMedia}" /></td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false time=$processArr[sec].endTime}</td>
	<td class="table1" align="center"><input type="text" name="tempBforQue[]" size="8" value="{$processArr[sec].tempBforQue}" /></td>
	<td class="table1" align="center"><input type="text" name="tempAfterQue[]" size="8" value="{$processArr[sec].tempAfterQue}" /></td>
</tr>
{/section}
{for $i = 1 to $incommingArr.noOfProcess}
<tr>
	<td class="table1">
		<input type="hidden" name="logSheetPlanningId" value="{$incommingArr.logSheetPlanningId}" />
		<input type="hidden" name="logSheetIncomingId" value="{$incommingArr.logSheetIncomingId}" />
		<input type="hidden" name="logSheetprocessId[]" value="{$incommingArr.processId[$i]}" />
		<input type="hidden" name="status[]" value="-1" />
		<input type="hidden" name="processNo[]" size="8" value="{$i}">
		{$incommingArr.nameOfProcess[$i]}
	</td>
	<td class="table1" align="center"><input type="text" name="logsheetNo[]" size="8" required="required" /></td>
	<td class="table1" nowrap>{html_select_date prefix="curDate" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d"}</td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false }</td>
	<td class="table1" align="center"><input type="text" name="startTemperature[]" size="8"></td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false }</td>
  <td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false }</td>
	<td class="table1" align="center"><input type="text" name="endTemperature[]" size="8" ></td>
	<td class="table1" align="center"><input type="text" name="quenchingMedia[]" size="8" ></td>
	<td class="table1" align="center" NOWRAP>{html_select_time use_24_hours=true display_seconds=false }</td>
	<td class="table1" align="center"><input type="text" name="tempBforQue[]" size="8" ></td>
	<td class="table1" align="center"><input type="text" name="tempAfterQue[]" size="8" ></td>
</tr>
{/for}
<tr><td class="table1" colspan="12" align="center"><input type="submit" name="submitbtn" value="Submit" class="button"></td></tr>
{else}
<tr><td class="table1" colspan="12" align="center"><font color="red">Planning Not Done of any record yet.</font></td></tr>
{/if}
</table>